﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
using LibNiconico.NiconicoApi.Internal;

namespace LibNiconico.NiconicoApi.Videos.ThumbInfo
{
    /// <summary>
    /// ニコニコ動画thumbレスポンス
    /// </summary>
    public sealed class NicoVideoThumbInfoResponse : NicoApiInfoXmlResponseBase
    {
        private NicoVideoThumbInfoResponse(XDocument document) : base(document) { }

        
        /// <summary>
        /// thumb
        /// </summary>
        public NicoVideoThumbInfo Thumb
        {
            get;
            private set;
        }

        


        internal static NicoVideoThumbInfoResponse Parse(XDocument document)
        {
            
            NicoVideoThumbInfoResponse result =  new NicoVideoThumbInfoResponse(document);

            result.Thumb = NicoVideoThumbInfo.Parse(document);

            return result;
        }
    }
}
